﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DomChecker
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            webBrowser1.Navigate("http://localhost:4444/WebApplication.UI/entrypoint.aspx");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            webBrowser1.Document.GetElementById("unloadFrame");
            var txt = webBrowser1.Document.Window.Frames[1].Document.GetElementById("ctl00_MainContent_txtCustomerId");
            //g.GetElementById("ctl00_MainContent_txtCustomerId");

            StringBuilder builder = new StringBuilder();

            builder.Append("Major : " + webBrowser1.Version.Major);
            builder.Append("Minor : " + webBrowser1.Version.Minor);
            builder.Append("Major : " + webBrowser1.Version.Major);
            

            //label1.Text = builder.ToString();
            //txt.InnerText = "123";
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}
